<?php

class GraphDraw_Loader
{
	public static function load($className)
	{
		$directorys = array(
	            '/Math/',
	            '/Render/');
	             
		foreach($directorys as $directory)
		{
			if(file_exists(dirname(__FILE__).$directory.$className.'.php'))
			{
				require_once(dirname(__FILE__).$directory.$className . '.php');
				return;
			}
		}
	}
}

?>